package com.lyh.crm.workbench.dao;

import com.lyh.crm.workbench.domain.Follow;
import com.lyh.crm.workbench.domain.Tran;
import com.lyh.crm.workbench.domain.Visit;

import java.util.List;
import java.util.Map;

public interface VisitDao {

    int getTotalByCondition(Map<String, Object> map);

    List<Visit> getVisitListByCondition(Map<String, Object> map);

    int save(Visit v);

    Visit getAllById(String id);

    int deleteByIds(String[] ids);

    int update(Visit t);

    Visit detail(String id);

    int getContactsIdTotal(String contactsId);

    String getPriorityByContactsId(String contactsId);

    List<Visit> getVisitList();

    int getTotalByTranId(String tranId);

    int updateState(Follow f);
}
